﻿#region Copyright (C) Sector7 Software Studio. All rights reserved
/*******************************************************************************************
 * Creation
 *      Author:         Mac
 *      Date:           2013/8/18 19:11:11
 *      Version:        
 * Modification 
 *      Author: 
 *      Date: 
 *      Description: 
 *      Version:
 *******************************************************************************************/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sector7.Medical.Enums;

namespace Sector7.Medical.Events
{
    /// <summary>
    /// 分页委托事件
    /// </summary>
    /// <param name="obj"></param>
    /// <param name="e"></param>
    public delegate void TurnedPageEventHandler(object obj, TurnedPageEventAgrs e);

    /// <summary>
    /// 分页事件参数
    /// </summary>
    public class TurnedPageEventAgrs:EventArgs
    {
        #region Accessor
        public TurnPageDirectionType TurnPageDirectionType
        {
            get { return m_turnPageDirectionType; }
        }

        public int PageNo
        {
            get { return m_pageNo; }
        }
        #endregion

        #region Structure
        public TurnedPageEventAgrs(int pageNo, TurnPageDirectionType turnPageDirection)
        {
            m_turnPageDirectionType = turnPageDirection;
            m_pageNo = pageNo;
        }
        #endregion

        #region Inner members
        private TurnPageDirectionType m_turnPageDirectionType = TurnPageDirectionType.Unkown;
        private int m_pageNo = 0;
        #endregion
    }
}
